// 用来保存token值
const HMKEY = 'heima-chengxuyuan'
// 设置token
function setToken(obj) {
    localStorage.setItem(HMKEY,JSON.stringify(obj))
}
// 获取token
function getToken() {
    return JSON.parse(localStorage.getItem(HMKEY))
}
// 删除token
function removeToken() {
    localStorage.removeItem(HMKEY)
}
// 导出方法
export {setToken,getToken,removeToken}